<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="dto.MemberDTO"%>
    <%@page import="dto.RoomDTO2" %>
    <%@page import="java.util.HashMap"%>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">

</script>
</head>
<body>
<c:set var="dto" scope="session" value='<%= (MemberDTO)session.getAttribute("login_info")%>'/>
<c:forEach items="${requestScope.list }" var="map" varStatus="cnt">
	<form action="getContentByRoom.do" method="post">
	<img src="/Project_homeshare_room/uproomfile/${map.fdto.fileName }" width="50" height="50px"><br>
	No. ${cnt.count }<br>
	Title: <input type="submit" value=${map.rdto.title }><br>		
	Room Type : ${map.rdto.property.propertyTypeContents }<br>
	City : ${map.rdto.address.sido }<br>
	Rental range :  ${map.rdto.privacy.privacyContents }<br>
	Rental price : $${map.rdto.price1 } /1daily<br>
	
	<input type="hidden" value="${map.rdto.roomNo }" name="postScript_roomno">
	<input type="hidden" value="${map.rdto.address.dong}" name="dong">
	</form>
	<form action="deleteRoom.do" method="post">
	<input type="hidden" value="${sessionScope.dto.member_id}" name="memberId">
	<input type="hidden" value="${map.rdto.roomNo }" name="roomNo">
	<input type="submit" value="Delete">
	</form>
	<form action="modifymenu.do" method="post">
	<input type="submit" value="Modify">
	<input type="hidden" value="${map.rdto.roomNo }" name="roomNo">
	</form>
	<hr>

	
</c:forEach>
<br>
<a href="roominput.do">Regist Room</a>

</body>
</html>